package com.ptone.messagecenter.common.base;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

@Data
public class PageForm<T> {
    private Integer pageSize;
    private Integer currentPage;
    private T form;

    public IPage<T> newPage() {
        return new Page(currentPage, pageSize);
    }
}
